package org.phantom.securityframework.api.domain;

import java.util.List;

import org.phantom.securityframework.api.util.AuthUtil;
/**
 * 权限
 * @author david
 *
 */
public class Permission implements org.phantom.securityframework.api.Permission {
	private int id;
	private String permName;
	private String permDesc;
	private String authType;
	private boolean dimension;
	private String depend;
	@SuppressWarnings("unused")
	private String platformId;
	private String subsystemId;
	private String createDate;
	private String lastModifyDate;

	private List<org.phantom.securityframework.api.Resource> resources = null;
	
	public Integer getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getPermName() {
		return permName;
	}
	public void setPermName(String permName) {
		this.permName = permName;
	}
	public String getPermDesc() {
		return permDesc;
	}
	public void setPermDesc(String permDesc) {
		this.permDesc = permDesc;
	}
	public String getAuthType() {
		return authType;
	}
	public void setAuthType(String authType) {
		this.authType = authType;
	}
	public String getDepend() {
		return depend;
	}
	public void setDepend(String depend) {
		this.depend = depend;
	}
	public String getPlatformId() {
		return AuthUtil.getPlatformId();
	}
	public String getSubsystemId() {
		return subsystemId;
	}
	public void setSubsystemId(String subsystemId) {
		this.subsystemId = subsystemId;
	}
	public String getCreateDate() {
		return createDate;
	}
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
	public String getLastModifyDate() {
		return lastModifyDate;
	}
	public void setLastModifyDate(String lastModifyDate) {
		this.lastModifyDate = lastModifyDate;
	}
	public List<org.phantom.securityframework.api.Resource> getResources() {
		return resources;
	}
	public void setResources(List<org.phantom.securityframework.api.Resource> resources) {
		this.resources = resources;
	}
	@Override
	public String getPermissionName() {
		return this.permName;
	}
	@Override
	public Boolean hasDimension() {
		return this.dimension;
	}
	public void setDimension(boolean dimension){
		this.dimension = dimension;
	}
	
}
